package foundation.interceptor;


import org.glassfish.hk2.api.InterceptionService;
import org.glassfish.hk2.utilities.binding.AbstractBinder;

import javax.inject.Singleton;

/**
 * @author futao
 * Created on 18-7-23-下午3:23.
 */
public class JerseyBinding extends AbstractBinder {
    @Override
    protected void configure() {
        this
                .bind(JerseyInterceptor.class)
                .to(InterceptionService.class)
                .in(Singleton.class);
    }
}
